#include <iostream>
#include "./util/string-match.h"

using namespace std;

int main()
{
	char s[] = "abcdefg";
	char t[] = "efg";
	cout << indexOf(s, t) << endl;
	cout << kmpIndexOf(s, t) << endl;
}